package com.allwees.bs.core.model.coupon.entity;

import com.allwees.bs.core.model.coupon.constant.ECashUseType;
import com.allwees.bs.core.modelbase.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@MappedSuperclass
public class CashActiveDefModel extends BaseEntity {

    @Column(length = 64)
    protected String name; // 名称

    protected BigDecimal value; // 值

    @Column(length = 64)
    @Enumerated(EnumType.STRING)
    protected ECashUseType useType;// 使用类型

    @Column(length = 8092)
    protected String description; // 描述

    /** 单人可领取数量 **/
    private Integer singleUserReceiveMaxCount;
}
